Population class extension: Moe_di_Stefano_2017 module

Module containing the functions to handle the Moe&Distrefano data

This class object is an extension to the population grid object

TODO: The values from M&S are from bincenters, but our method makes it that the bincenter value is used as an edge value. So e.g. taking an eccentricity of 0.04 wll give 0 because its lower than the 0.05 (minimum) point. But it should probably give a value, even if we choose eccentricity = 0

class binarycpython.utils.population_extensions.Moe_di_Stefano_2017.Moe_di_Stefano_2017(**kwargs)[source]

Bases: object

Extension to the population grid object that contains functionality to handle handle the Moe & distefano distributions

Moe_di_Stefano_2017(options=None)[source]

Function to handle setting the user input settings, set up the data and load that into interpolators and then set the distribution functions

Takes a dictionary as its only argument

get_moe_di_stefano_dataset(options, verbosity=0)[source]

Function to get the default Moe and di Stefano dataset or accept a user input.

Returns a dict containing the (JSON) data.

set_moe_di_stefano_settings(options=None)[source]

Function to set user input configurations for the Moe & di Stefano methods

If nothing is passed then we just use the default options